package com.nidu.demo.dict.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nidu.demo.dict.mapper.dataobject.DictTypeDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DictTypeMapper extends BaseMapper<DictTypeDO> {

    @Select("SELECT * FROM sys_dict_type WHERE type = #{type} LIMIT 1")
    DictTypeDO selectByType(String type);

}